package al4th.chp1;

import al4th.StdLib.StdOut;

/**
 * @Author : wanghongfu
 * @Date : Created in 下午9:21  17/10/17
 * @Email 1583505981@qq.com
 * @Description:
 */
public class Ex_1_1_09 {
    public static void main(String[] args) {
        int N=234245;
        StdOut.println(Integer.toBinaryString(N));
        String s="";
        for (int n=N; n>0 ;n/=2){
            s=(n%2)+s;
        }
        StdOut.println(s);
    }
}
